package com.lagou.edu.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author liangzj
 * @date 2021/6/25 23:03
 */
@FeignClient("lagou-service-code")
public interface CodeClient {

    @RequestMapping("/code/validate/{email}/{code}")
    boolean validate(@PathVariable String email, @PathVariable String code);

}
